package com.ke.searchhouse.repository;

import com.ke.searchhouse.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;

/**
 * @author  keke
 * @create  2018/10/11 0011 下午 8:45
 * @desc
 **/
public interface UserRepository extends JpaRepository<User, Long> {

    User findByName(String userName);

    User findUserByPhoneNumber(String telephone);
}
